# frozen_string_literal: true

require 'htmlbeautifier'

Jekyll::Hooks.register %i[pages documents], :post_render do |page|
  next unless page.output_ext == '.html'

  page.output = HtmlBeautifier.beautify(page.output)
end
